import request from '@/utils/request'
// 分页查询仓库
export const warehousePage = params => request.get('/api/warehouse/page', { params })
// 修改仓库
export const wearhouse = data => request.put('/api/warehouse', data)
// 删除仓库
export const warehouseDelete = params => request.delete('/api/warehouse', { params })
// 获取仓库编号
export const codeNext = name => request.get('/api/codeFactory/next/' + name)
// 新增仓库
export const newWearhouse = data => request.post('/api/warehouse', data)
// 获取仓库详情
export const getWearhouseMore = id => request.get('/api/warehouse/' + id)
// 修改仓库
export const putWearhouse = data => request.put('/api/warehouse', data)
// 查询所有仓库
export const getWearhouseList = params => request.get('/api/warehouse/list', { params })
